//
//  PayListTableViewCell.m
//  TenThousand
//
//  Created by 我的 on 16/6/24.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "PayListTableViewCell.h"

@implementation PayListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelect:(BOOL)select {
    _select = select;
    self.theSelected.selected = _select;
}

-(void)setDataWithModel:(ReimburModel *)model{
    
    _MaxPrice.text = [NSString stringWithFormat:@"应付金额:%.2f元",[model.total doubleValue]];
    _TotalIndex.text = [NSString stringWithFormat:@"期数:%@/%@",model.Number,model.TotalIndex];
    _EndDate.text = [NSString stringWithFormat:@"还款日期:%@",model.EndDate];
    _Sate.text = [NSString stringWithFormat:@"状态:%@",model.Sate];
    
}


- (IBAction)theSelect:(UIButton *)sender {
    
//    if (sender.selected) {
//        sender.selected = NO;
//        
//    }else{
//        sender.selected = YES;
//        
//        
//    }
//    
}

-(void)prepareForReuse{
    [super prepareForReuse];
//    self.theSelected.selected = NO;
}

@end
